package com.beverages.commodities.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beverages.commodities.entity.Commodities;
import com.beverages.commodities.entity.dto.CommoditiesDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommoditiesMapper extends BaseMapper<Commodities> {
//    @Select("SELECT * FROM course_thumbup WHERE course_id = #{ courseId  } ")
//    List<CommoditiesDTO> findThumpupList(@Param("courseId") Integer courseId);

//    @Select("SELECT * FROM course_thumbup WHERE course_id = #{ fileId } ")
//    CommoditiesDTO convertFileIdToUrl(@Param("fileId") Integer fileId);
}
